package com.cj.flowabletest.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author cc
 * @date 2025-03-02 10:53
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RespBean {

    private Integer status;
    private String msg;
    private Object data;


    public static RespBean ok(String msg,Object data){
        return new RespBean(200,msg,data);
    }

    public static RespBean ok(String msg){
        return new RespBean(200,msg,null);
    }

    public static RespBean error(String msg){
        return new RespBean(500,msg,null);
    }

}
